/****** Object:  Stored Procedure [dbo].spcatogeryUpdate Script Date: 11/24/2012 ******/
IF EXISTS (SELECT * FROM dbo.sysobjects WHERE id = object_id(N'[dbo].[spcatogeryUpdate]') AND OBJECTPROPERTY(id, N'IsProcedure') = 1)
	DROP PROCEDURE [dbo].[spcatogeryUpdate]
GO

/******************************************************************************
**		Name: [dbo].spcatogeryUpdate
**		Desc:
**
**		Return values:
**
**		Called by:
**
**		Parameters:
**		Input						Output
**		----------					----------
**
**		Auth: MinhSong
**		Date: 11/24/2012
*******************************************************************************
**		Change History
*******************************************************************************
**		Date:		Author:					Description:
**		--------	--------				-----------------------------------
**
*******************************************************************************/

CREATE PROCEDURE [dbo].[spcatogeryUpdate]
(
	@CatogeryID int,
	@CatogeryName nvarchar(50)
)

WITH ENCRYPTION

AS

SET NOCOUNT ON

UPDATE [tbl_catogery]
SET [CatogeryName] = @CatogeryName
WHERE	[CatogeryID] = @CatogeryID
GO

--GRANT EXECUTE ON [dbo].[spcatogeryUpdate] TO [sa]
--GO
